package com.qzxy.premiumhotelsystem.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzxy.premiumhotelsystem.domain.dto.RoomStockPageDTO;
import com.qzxy.premiumhotelsystem.domain.entity.RoomTypes;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qzxy.premiumhotelsystem.domain.vo.RoomTypeCount;
import com.qzxy.premiumhotelsystem.domain.vo.RoomTypeDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 14912
* @description 针对表【room_types】的数据库操作Mapper
* @createDate 2024-09-12 15:55:14
* @Entity com.qzxy.premiumhotelsystem.domain.pojo.RoomTypes
*/
@Mapper
public interface RoomTypesMapper extends BaseMapper<RoomTypes> {

    RoomTypeDetailVO selectByRoomTypeId(Integer roomTypeId);

    List<RoomTypeDetailVO> selectAdviceRoomType(Integer isAdvice);

    IPage<RoomTypeDetailVO> queryRoomStock(IPage<RoomTypeDetailVO> page, @Param("dto") RoomStockPageDTO roomStockPageDTO);

    List<RoomTypeCount> countRooms();

    List<RoomTypeDetailVO>  selectByRoomTypeIdButNOStock(Integer roomTypeId);
}




